package com.estate.common.core.domain.model.listing;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

@Data
@Alias("agent")
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class Agent {
    private Integer id;
    private String email;
    private String phone;

    @JsonProperty("first_name")
    private String firstName;

    private String surname;
    private String mobile;
    private String position;

}
